package com.ruoyi.order.service.impl;

import com.baomidou.mybatisplus.extension.service.impl.ServiceImpl;

import com.ruoyi.order.domain.GoodsOrderComboInfo;
import com.ruoyi.order.mapper.GoodsOrderComboInfoMapper;
import com.ruoyi.order.service.IGoodsOrderComboInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * 卖品订单套餐明细信息Service业务层处理
 *
 * @author HHAOYU
 * @date 2021-01-16
 */
@Service
public class GoodsOrderComboInfoServiceImpl extends ServiceImpl<GoodsOrderComboInfoMapper, GoodsOrderComboInfo> implements IGoodsOrderComboInfoService {
    @Autowired
    private GoodsOrderComboInfoMapper goodsOrderComboInfoMapper;

    /**
     * 查询卖品订单套餐明细信息
     *
     * @param id 卖品订单套餐明细信息ID
     * @return 卖品订单套餐明细信息
     */
    @Override
    public GoodsOrderComboInfo selectGoodsOrderComboInfoById(Long id)
    {
        return goodsOrderComboInfoMapper.selectGoodsOrderComboInfoById(id);
    }

    /**
     * 查询卖品订单套餐明细信息列表
     *
     * @param goodsOrderComboInfo 卖品订单套餐明细信息
     * @return 卖品订单套餐明细信息
     */
    @Override
    public List<GoodsOrderComboInfo> selectGoodsOrderComboInfoList(GoodsOrderComboInfo goodsOrderComboInfo)
    {
        return goodsOrderComboInfoMapper.selectGoodsOrderComboInfoList(goodsOrderComboInfo);
    }

    /**
     * 新增卖品订单套餐明细信息
     *
     * @param goodsOrderComboInfo 卖品订单套餐明细信息
     * @return 结果
     */
    @Override
    public int insertGoodsOrderComboInfo(GoodsOrderComboInfo goodsOrderComboInfo)
    {
        return goodsOrderComboInfoMapper.insertGoodsOrderComboInfo(goodsOrderComboInfo);
    }

    /**
     * 修改卖品订单套餐明细信息
     *
     * @param goodsOrderComboInfo 卖品订单套餐明细信息
     * @return 结果
     */
    @Override
    public int updateGoodsOrderComboInfo(GoodsOrderComboInfo goodsOrderComboInfo)
    {
        return goodsOrderComboInfoMapper.updateGoodsOrderComboInfo(goodsOrderComboInfo);
    }

    /**
     * 批量删除卖品订单套餐明细信息
     *
     * @param ids 需要删除的卖品订单套餐明细信息ID
     * @return 结果
     */
    @Override
    public int deleteGoodsOrderComboInfoByIds(Long[] ids)
    {
        return goodsOrderComboInfoMapper.deleteGoodsOrderComboInfoByIds(ids);
    }

    /**
     * 删除卖品订单套餐明细信息信息
     *
     * @param id 卖品订单套餐明细信息ID
     * @return 结果
     */
    @Override
    public int deleteGoodsOrderComboInfoById(Long id)
    {
        return goodsOrderComboInfoMapper.deleteGoodsOrderComboInfoById(id);
    }
}
